/**
 * request logic
 */
 const NET_CODE_SUC = 200;

 /**
   * 判断服务请求是否成功
   * @param response
   * @returns {*|boolean}
   */
 export function isResponseSuccess (response) {
   return response && response.code && response.code === NET_CODE_SUC;
 }
// 询价需求
export const REMIND_INQUIRY_MENUID = 1;
export const REMIND_INQUIRY_MENUID_DES = '询价需求待受理';
export const REMIND_INQUIRY_MENUID_TWO = 2;
export const REMIND_INQUIRY_MENUID_DES_TWO = '询价需求待询价';
export const REMIND_INQUIRY_MENUID_THREE = 3;
export const REMIND_INQUIRY_MENUID_DES_THREE = '询价需求取消';
// 订货需求
export const REMIND_ORDERH_MENUID = 4;
export const REMIND_ORDERH_MENUID_DES = '订货需求待受理';
export const REMIND_ORDERH_MENUID_TWO = 5;
export const REMIND_ORDERH_MENUID_DES_TWO = '订货需求待询价';
export const REMIND_ORDERH_MENUID_THREE = 6;
export const REMIND_ORDERH_MENUID_DES_THREE = '订货需求取消';
// 采购询价
export const REMIND_PURCHASE_MENUID = 7;
export const REMIND_PURCHASE_MENUID_DES = '未完成的客户询价';
export const REMIND_PURCHASE_MENUID_TWO = 8;
export const REMIND_PURCHASE_MENUID_DES_TWO = '未完成的订货询价';
export const REMIND_PURCHASE_MENUID_THREE = 9;
export const REMIND_PURCHASE_MENUID_DES_THREE = '待订货审批的订货询价';
export const REMIND_PURCHASE_MENUID_FORE = 10;
export const REMIND_PURCHASE_MENUID_DES_FORE = '待下推订单的订货询价';

export const REMIND_LABLE = (item) => {
  switch (item) {
    case REMIND_INQUIRY_MENUID :
      return REMIND_INQUIRY_MENUID_DES;
    case REMIND_INQUIRY_MENUID_TWO:
      return REMIND_INQUIRY_MENUID_DES_TWO;
    case REMIND_INQUIRY_MENUID_THREE:
      return REMIND_INQUIRY_MENUID_DES_THREE;
    case REMIND_ORDERH_MENUID:
      return REMIND_ORDERH_MENUID_DES;
    case REMIND_ORDERH_MENUID_TWO:
      return REMIND_ORDERH_MENUID_DES_TWO;
    case REMIND_ORDERH_MENUID_THREE:
      return REMIND_ORDERH_MENUID_DES_THREE;
    case REMIND_PURCHASE_MENUID:
      return REMIND_PURCHASE_MENUID_DES;
    case REMIND_PURCHASE_MENUID_TWO:
      return REMIND_PURCHASE_MENUID_DES_TWO;
    case REMIND_PURCHASE_MENUID_THREE:
      return REMIND_PURCHASE_MENUID_DES_THREE;
    case REMIND_PURCHASE_MENUID_FORE:
      return REMIND_PURCHASE_MENUID_DES_FORE;
  }
};
